import service from '@/utils/request'

const GasApi = {
  // ---------------烟雾报警器----------------
  addGas: function (data) {
    return service.post('gas', data)
  },
  deleteGas: function (data) {
    return service.put('gas/delete', data)
  },
  editGas: function (data) {
    return service.put('gas', data)
  },
  listGas: function (data) {
    return service.get('gas/page', {params: data })
  },
  getGasInfo: function (data) {
    return service.get('gas', {params: data })
  },
  updateValveState: function (data) {
    return service.get('gas/updateValveState', {params: data })
  },
}

export default GasApi
